package ca.ualberta.cs.CLRServer.resources;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.WebApplicationException;
///SAM
/*import com.sun.jersey.spi.container.servlet.ServletContainer;
import com.sun.jersey.api.core.ResourceConfig;*/

 // The Java class will be hosted at the URI path "/helloworld"
     @Path("/helloworld")
     public class HelloWorldResource{
     
    	 public HelloWorldResource( String na){
    		 if(na.equals("samaneh"))
    			 throw new WebApplicationException(404);
    	 }
    	 
         // The Java method will process HTTP GET requests
        @GET 
         // The Java method will produce content identified by the MIME Media
         // type "text/plain"
         @Produces("text/plain")
        public String getClichedMessage(/*@PathParam("username") String name*/) {
            // Return some cliched textual content
            return "Hello World: "/*+name*/;
        }
    }